<div class="help_right">
    <div class="folder" >
        <div class="folder-title-new00" >
            <div class="square00"></div>
            <div style="margin-top: 7px;float: left"><a>[DANH MỤC VĂN BẢN]</a></div>
        </div>
        <div class="folder-body00" style="height:550px">

            <div class="leftnews_line" style="width: 250px">
                <ul>
                    <?php
                    $arrCat=listAllCategory($parent_id = 0);
                    for($i=0;$i<count($arrCat);$i++)
                    {
                        ?>
                    <li><a href="<?php echo get_link("documents","cat",$arrCat[$i]['cat_link']); ?>"><?php echo htmlentities_utf8($arrCat[$i]["cat_title"]);?></a></li>
                    <?php

                }
                ?>
                </ul>
            </div>
        </div>
        <div class="folder-bottom00">
            <div class="square-bottom00"></div>
        </div>

    </div>

<?php  $rsAdv = getAdvClient('documents', 'right', 5);

 if($db->num_rows($rsAdv)>0){
        ?>
    <div class="folder" >
        <div class="folder-title-new00" >
            <div class="square00"></div>
            <div style="margin-top: 7px;float: left;color: #000">[Quảng cáo]</div>
        </div>
        <div class="folder-body00" >
            <?php
            while ($row = $db->fetch_array($rsAdv)) {
                ?>
            <div style="margin-bottom: 2px;">
                <a href="<?php echo $row['link'];?>"><img alt="" src="<?php echo $row['filename'];?>" width="286px;" /></a>
            </div>
            <?php }?>
        </div>
        <div class="folder-bottom00">
            <div class="square-bottom00"></div>
        </div>
    </div>
<?php } ?>


   
</div> 